package com.ruoyi.web.controller.home;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.home.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HomeController
 * Description:
 *
 * @Author lh
 * @Create 2024/11/4 10:44
 * @Version 1.0
 */
@RestController
@RequestMapping("/home")
public class HomeController  extends BaseController {
    @Autowired
    private HomeService homeService;

    @GetMapping("/queryData")
    public AjaxResult queryData(){
        return success(homeService.selectHomeData());
    }
}
